package com.example.statemachine.action;

import com.example.statemachine.StatesEvents;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.statemachine.StateContext;
import org.springframework.statemachine.action.Action;
import org.springframework.stereotype.Component;


/**
 * @Author: leizj
 * @Desc:
 */
@Slf4j
@Component
@AllArgsConstructor
public class StartToNewAction implements Action<StatesEvents.State, StatesEvents.Event> {

    @Override
    public void execute(StateContext<StatesEvents.State, StatesEvents.Event> stateContext) {
        log.info("StartToNewAction, stateContext:{}", stateContext);
    }
}
